package com.hua.yuan.manager.user.business.api;
import java.util.Map;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * @Author: richsjeson.
 * @Description: TODO()
 * @Date:Created in 2019/1/2 10:58 PM.
 * @Modified By:
 */
public interface IUserUpdateApi {

    @FormUrlEncoded
    @POST("/api/user/modify_info")
    Call<String> updateInfo(@FieldMap Map<String,Object> pMap);


    @FormUrlEncoded
    @POST("/api/user/modify_pwd")
    Call<String> updatePwd(@Field("old_password") String pOldPwd,@Field("new_password") String pNewPwd,@Field("token") String pToken);


    @FormUrlEncoded
    @POST("/api/user/find_pwd")
    Call<String> forgetPwd(@FieldMap Map<String,Object> pMap);


    @FormUrlEncoded
    @POST("/api/user/register")
    Call<String> register(@FieldMap Map<String,Object> pMap);

}
